package com.thirdpartylogin.trainingfacilityfrontend.controller;

import jakarta.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

//控制界面的路由
@Controller
public class showContrller {
    //设置默认的欢迎界面
    @RequestMapping("/")
    public String hello(){
        return "forward:/index";
    }


    @GetMapping("/index")
    public ModelAndView Index(){
        return new ModelAndView("/html/lostandfound.html");
    }

}
